package com.twu.biblioteca.entity;

/**
 * Created by ccsong on 9/22/14.
 */
public class Movie {
    private String name;
    private long year;
    private String director;
    private String movieRating ;


    public Movie(String name, long year, String directory, String movieRating) {
        this.name = name;
        this.year = year;
        this.director = directory;
        this.movieRating = movieRating;
    }

    public String toString(){
        return name + " :\n"+"\tyear "+year+", \tdirector "+director+", \tmovieRating "+movieRating+"\n";
    }

    public boolean isMatch(String name) {
        return this.name.equals(name);
    }
}
